<script setup lang="ts">
import { isClient } from '@vueuse/core'
const goHome = () => {
  if (!isClient) return
  window.location.href = `/`
}
</script>

<template>
  <el-result icon="error" title="404" sub-title="未找到相关资源">
    <template #extra>
      <el-button @click="goHome">首页</el-button>
    </template>
  </el-result>
</template>

<style scoped>
.el-result {
  height: 100vh;
  width: 100vw;
}
</style>
